package com.gmu.service;

import com.gmu.domain.ResResult;
import com.gmu.pojo.TblAdmin;
import com.gmu.pojo.vo.MsgResult;
import com.gmu.pojo.vo.RegisterVo;

/**
 * @author 木鱼~
 * @version 1.0
 */
public interface LoginService {
    ResResult<?> login(String idNumber, String password);

    ResResult<?> logout();

    ResResult<?> loginAdmin(String username, String password, String code);

    //注册用户信息
    ResResult<?> register(RegisterVo registerVo);

    //调用service发送短信的方法
    MsgResult sendMsgPost(String phone, String code);

    ResResult<?> loginByPhone(String phone, String code);

    ResResult<?> AdminLogout();

    ResResult<?> adminUpdatePassword(String oldPassword, String newPassword);

    ResResult<?> adminUpdateInfo(TblAdmin tblAdmin);
}
